package com.module.framework.exception;

import com.module.framework.enums.AppHttpCodeEnum;

/**
 * @Author JiHuiQin
 * @Date 2022/2/14 22:42
 * @Version 1.0
 */

public class SystemException extends RuntimeException {

	public SystemException(AppHttpCodeEnum httpCodeEnum) {
		super(httpCodeEnum.getMsg());
		this.code = httpCodeEnum.getCode();
		this.msg = httpCodeEnum.getMsg();
	}

	private int code;
	private String msg;

	public int getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}
}
